package com.lan.entity.sys;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("student_user_role_rel")
public class UserRoleRel {

    private String id;

    private String userId;

    private String roleId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created;	//表示入库时需要赋值
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated;	//表示入库/更新时赋值.

}
